onPrepareMenu

open fun onPrepareMenu(@NonNull menu: Menu)(source)

Called right before the given Menu, which was provided by one of the current MenuProviders, is to be shown. This happens when the menu has been dynamically modified.

Parameters

menu

the menu that is to be prepared

See also